<template>
    <view class="content">
        <view class="line"></view>
        <view class="wrapper">
            <view class="img-box">
                <image :src="data.image" mode="widthFix"></image>
            </view>
            <view class="box">
                <view class="u-flex-1">
                    <view class="u-p-b-10">
                        联系电话：{{data.phone}}
                    </view>
                    <view>
                        商家地址：{{data.address}}
                    </view>
                </view>
                <image src="../../static/icon/i_08.png" class="i-08"></image>
            </view>
            <u-parse :html="data.message"></u-parse>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            
            return {
                id: '',
                data: {},
            };
        },
        onLoad(option) {
            this.id = option.id
            this.getData()
        },
        methods: {
            getData() {
                this.$ajax('cooperation_detail', {
                    user_token: this.$getSync('userToken'),
                    id: this.id,
                }).then(ret => {
                    if (ret.success == 1000) {
                        this.data = ret.detail
                    } else {
                        this.$toast(ret.msg);
                    }
                });
            },
        }
    };
</script>

<style lang="scss">
    page{
        background-color: #fff;
    }
    .line{
        width: 750rpx;
        height: 20rpx;
        background-color: #f6f6f6;
    }
    .wrapper{
        padding: 30rpx;
    }
    .img-box{
        width: 120rpx;
        height: 120rpx;
        margin: 0 auto 30rpx;
    }
    .box{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25rpx 0;
        margin-bottom: 25rpx;
        font-size: 24rpx;
        border-bottom: 2rpx solid #e6e6e6;
    }
    .i-08{
        width: 35rpx;
        height: 35rpx;
        margin-left: 20rpx;
    }

</style>
